package cn.wolfcode.mapper;

import cn.wolfcode.domain.ActivityItem;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ActivityItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ActivityItem record);

    ActivityItem selectByPrimaryKey(Long id);

    List<ActivityItem> selectAll(Long id);

    int updateByPrimaryKey(ActivityItem record);

    List<ActivityItem> selectForList(QueryObject qo);
    //插入到choice表中
    void insertToChoice(@Param("empId") Long empId, @Param("optionsRadios") Long optionsRadios, @Param("date") Date date);

    /*查询人数*/
    Integer findSum(Long id);

    void updateRelation(Long optionsRadios);


    Integer checkPl(@Param("empId") Long empId, @Param("id") Long id);

    void updateStatusById(@Param("id") Long id, @Param("status") Boolean status);
}